{% extends "base.html" %}  
{% block title %}<title>后台管理</title>{% endblock %}
{% block content %}
<div class="blogs">
    <ul class="bloglist">
        {%if article_list%}
            {%for article in article_list%}
            <li>
				<div class="arrow_box">
				  <div class="ti"></div>
				  <!--三角形-->
				  <div class="ci"></div>
				  <!--圆形-->
				  <h2 class="title"><a href="/Edit/{{article.Id}}/">{{article.Title}}</a></h2>
				  <ul class="details">
					<li class="icon-time"><a href="#">{{article.Time|date:"Y-m-d"}}</a></li>
				  </ul>
				</div>
				<!--arrow_box end--> 
			  </li>
            {%endfor%}
			<div class="digg" style="clear:both;"> 
			{%ifnotequal curPage 1%}
				<span><a href="?curPage={{1}}&&allPage={{1}}">&lt; </a></span>
			{%else%}
				<span class="disabled">&lt; </span>
			{%endifnotequal%}
			{%for i in pagenum%}
			{%if i == curPage%}
			<span class="current">{{curPage}}</span>
			{%else%}
			<a href="?curPage={{i}}&&allPage={{allPage}}">{{i}}</a>
			{%endif%}
			{%endfor%}
			{%ifnotequal curPage allPage%}
				<span><a href="?curPage={{allPage}}&&allPage={{allPage}}">&gt;</a></span>
			{%else%}
				<span class="disabled">&gt;</span>
			{%endifnotequal%}
		</div>
        {%else%}
            <p>暂无记录！</p>
        {%endif%}
		
    </ul>
    <!--bloglist end-->
    <aside>
	<div class="search">
        <a href="/Edit/0/" title="发布新文章">发布新文章</a>
      </div>
	  <div class="sunnav">
        <ul>
		{%for type in type_list%}
			<li><a href="/Admin/{{type.Name}}/" title="{{type.Name}}">{{type.Title}}({{type.Count}})</a></li>
		{%endfor%}
        </ul>
      </div>
      
    </aside>
  </div>
{% endblock %}